package com.itheima.templete;

public class Demo01 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.drink();

    }
}
abstract class AnimalTemplete {
    public void drink() {
        System.out.println("动物喝水");
        eat();
    }

    public abstract void eat();

}
class Dog extends AnimalTemplete{

    @Override
    public void eat() {
        System.out.println("够吃狗粮");
    }
}